<template>
    <div class="company">
        <van-nav-bar title="公司资质" left-arrow @click-left="onClickLeft" />
        <img class="img" v-for="item, index in bannerList" :src="item.image_url" alt="">
    </div>
</template>
<script>
import { CONFIG_DATA } from '@/api/home';
export default {
    data() {
        return {
            bannerList: []
        }
    },
    mounted() {
        this.getBanner()
    },
    methods: {
        onClickLeft() {
            this.$router.go(-1)
        },
        // 轮播图
        getBanner() {
            this.$http.get(CONFIG_DATA, {
                params: {
                    key: 'pictures_gszz'
                }
            })
                .then(res => {
                    const {
                        data
                    } = res;

                    this.bannerList = data || [];
                })

        },
    }
}
</script>
<style lang="scss" scoped>
    ::v-deep .van-nav-bar .van-icon {
      color: #333333;
    }
  
    ::v-deep .van-nav-bar__arrow {
      font-size: 20px;
    }
.company {
    padding-top: 46rpx;

    img {
        width: 100%;
        padding: 0;
        margin: 0;
        display: block;
    }
}
</style>